#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<vector>
using namespace std;
class Solution {
public:
    vector<int> findPeaks(vector<int>& mountain)
    {
        int len = mountain.size();
        vector<int> ans;
        for (int i = 1; i < len - 1; i++)
        {
            if (mountain[i] > mountain[i - 1] && mountain[i] > mountain[i + 1])
                ans.push_back(i);
        }
        return ans;
    }
};